import "@uirouter/angularjs";
import "@uirouter/angularjs/angular";
import { baseViewRouting } from "@/view/root-routing.mjs";

export { default as RootRoutingController } from "@/view/root-routing.mjs";
/**
 * @param {import('@uirouter/angularjs').StateProvider} $stateProvider
 * @param {angular.auto.IInjectorService} $injector
 */
export function initRouter($stateProvider, $injector) {
  console.log(">>> init router", baseViewRouting);
  for (const route of baseViewRouting) {
    $stateProvider.state(route);
  }
}

initRouter.$inject = ["$stateProvider", "$injector"];
